#!/usr/bin/python
# -*- coding: utf-8 -*-
# @version        : 1.0
# @Create Time    : 2021/10/24 11:25 
# @File           : __init__.py.py
# @IDE            : PyCharm
# @desc           : 脚本

import importlib


def run(model: str):
    model = importlib.import_module(model)  # 动态导入模块
    if hasattr(model, "run"):
        model.run()
        return True
    return False


if __name__ == '__main__':
    run("scripts.baidu_hot_search.baidu_hot_search.spiders.ranking_list")


